import Vue from 'vue'
// import work from './work.vue'
import work from './work/work.vue'

Vue.config.productionTip = false

//图片自定义指令
import config from './utils/config.js'
Vue.directive('oss-src',function(el,src){
  //获取src值
  let imgUrl= src.value;
  //判断里面有值就将图片的路径拼接
  if(imgUrl){
    console.log(config.ossPath)
    el.setAttribute('src',config.ossPath+imgUrl)
  }
})//自定义图片
new Vue({
  render: h => h(work),
}).$mount('#app')
